package com.seaking.service;

import com.seaking.dao.DepartmentDao;
import com.seaking.pojo.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by wchha on 10/24 0024.
 */
@Service
public class DepartmentService {

    @Autowired
    private DepartmentDao departmentDao;

    public List<Department> getDepartment(){
        List<Department> department = departmentDao.getDepartment();
        return department;
    }
}
